var AipSpeechClient = require("baidu-aip-sdk").speech;
var AipOcrClient = require("baidu-aip-sdk").ocr;
var AipNlpClient = require("baidu-aip-sdk").nlp;
var AipFaceClient = require("baidu-aip-sdk").face;
var AipImageClassifyClient = require("baidu-aip-sdk").imageClassify;
var AipContentCensorClient = require("baidu-aip-sdk").contentCensor;
var AipZs = require("./zstp");

// 设置APPID/AK/SK
var APP_ID = "14394119";
var API_KEY = "PZc8fPN9yjZ9IudRl0snfOvO";
var SECRET_KEY = "gM5I69vcxzGvx8S9IdDsjoloFbWQBj4C";

// 新建一个对象，建议只保存一个对象调用服务接口
var aipSpeech = new AipSpeechClient(APP_ID, API_KEY, SECRET_KEY);
var aipOcr = new AipOcrClient(APP_ID, API_KEY, SECRET_KEY);
var nlp = new AipNlpClient(APP_ID, API_KEY, SECRET_KEY);
var face = new AipFaceClient(APP_ID, API_KEY, SECRET_KEY);
var imageClassify = new AipImageClassifyClient(APP_ID, API_KEY, SECRET_KEY);
var contentCensor = new AipContentCensorClient(APP_ID, API_KEY, SECRET_KEY);
var AipZsC = new AipZs(APP_ID, API_KEY, SECRET_KEY);

module.exports = {
    speech: aipSpeech,
    ocr: aipOcr,
    nlp: nlp,
    face,
    imageClassify,
    contentCensor,
    zstp: AipZsC
};